package com.yf.construction.preprocessing.convert;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yf.construction.preprocessing.dto.ConstructionPreprocessingDTO;
import com.yf.construction.preprocessing.entity.ConstructionPreprocessing;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface PreprocessingConvert {

    PreprocessingConvert INSTANCE = Mappers.getMapper(PreprocessingConvert.class);

    ConstructionPreprocessing dtoToEntity(ConstructionPreprocessingDTO reqDTO);

    ConstructionPreprocessingDTO entityToDto(ConstructionPreprocessing entity);

    List<ConstructionPreprocessingDTO> listEntityDto(List<ConstructionPreprocessing> list);

    Page<ConstructionPreprocessingDTO> pageEntityDto(Page<ConstructionPreprocessing> page);
}
